package cn.pconline.autoclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;
import org.gelivable.dao.Transient;

/**
 * 会员油值统计
 *
 * @author chensy
 */
@Entity(tableName = "ac_member_stat" , secondLevelCache = false)
public class MemberStat {

    @Id
    @Column(name = "member_stat_id")
    private long memberStatId;//车友会Id
    @Column(name = "club_id")
    private long clubId;//车友会Id
    @Column(name = "user_id")
    private long userId;//成员Id
    @Column(name = "day_petrol")
    private long dayPetrol;//昨日油值
    @Column(name = "day_petrol_update_at")
    private Date dayPetrolUpdateAt;//昨日油值
    @Column(name = "week_petrol")
    private long weekPetrol;//上周油值
    @Column(name = "week_petrol_update_at")
    private Date weekPetrolUpdateAt;//上周油值
    @Column(name = "update_at")
    private Date updateAt;//更新时间 
    @Column(name = "status")
    private int status;//统计状态 默认为1 
    public static final int STATUS_VALID = 1;
    public static final int STATUS_INVALID = 0;
    @Transient(cache = false)
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getDayPetrolUpdateAt() {
        return dayPetrolUpdateAt;
    }

    public void setDayPetrolUpdateAt(Date dayPetrolUpdateAt) {
        this.dayPetrolUpdateAt = dayPetrolUpdateAt;
    }

    public Date getWeekPetrolUpdateAt() {
        return weekPetrolUpdateAt;
    }

    public void setWeekPetrolUpdateAt(Date weekPetrolUpdateAt) {
        this.weekPetrolUpdateAt = weekPetrolUpdateAt;
    }

    public long getMemberStatId() {
        return memberStatId;
    }

    public void setMemberStatId(long memberStatId) {
        this.memberStatId = memberStatId;
    }

    public long getClubId() {
        return clubId;
    }

    public void setClubId(long clubId) {
        this.clubId = clubId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getDayPetrol() {
        return dayPetrol;
    }

    public void setDayPetrol(long dayPetrol) {
        this.dayPetrol = dayPetrol;
    }

    public long getWeekPetrol() {
        return weekPetrol;
    }

    public void setWeekPetrol(long weekPetrol) {
        this.weekPetrol = weekPetrol;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
